import requests

kw = input("请输入你要翻译的单词")
dit = {
    "kw": kw,
}
url = "https://fanyi.baidu.com/sug"
resp = requests.post(url, data=dit)
print(resp.json())